#ifndef _BAR_
#define _BAR_

#include <vector>
#include "mesh.h"

/* bar
 * Create a bar that counts something and fills itself 
 	with the percentage.
 * Used for health bars / special bars and character stats.
 * When drawn, at full percentage it has 100% colors,
 	the emptier it gets, the darker it's drawn.
 */

class Bar : public Mesh
{
public:
	//Lifecycle
	Bar();
	void draw();

	//Actions
	void increase(unsigned char);
	void decrease(unsigned char);
	
	//Setters
	void setMax    (unsigned char);
	void setCurrent(unsigned char);

	//Saves current and max value
	unsigned char max, cur;
};

#endif
